package cn.arnold.java8newfuture.stream;

import cn.arnold.java8newfuture.User;

import java.util.Arrays;
import java.util.stream.IntStream;
import java.util.stream.Stream;

/**
 * @author Arnold-Xiang
 * @Info Stream的实例化
 */
public class Demo1 {
    public static void main(String[] args) {

    }

    public void ArraysCreate() {
        int[] arr = new int[]{1, 2, 3, 4, 5, 6};
        IntStream stream = Arrays.stream(arr);
        User u1 = new User("arnold", "wuhan");
        User u2 = new User("melon", "wuhan");
        User[] user = new User[]{u1, u2};
        Stream<User> userStream = Arrays.stream(user);
    }
}
